/*
 * File			: 
 * Date			: 2016/11/08
 * Author		: lsh
 * Description	: 
 */
#include <iostream>
#include "Product.h"
#include "ProductA.h"
#include "ProductB.h"
#include "Factory.h"

Product * Factory::CreateProduct(PRODUCTTYPE type)
{
	switch(type)
	{
	case TypeA:
		return new ProductA();
	case TypeB:
		return new ProductB();
	default:
		return NULL;
	}
}

